﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace Himp.Erp
{
    /// <summary>
    /// 调价单明细
    /// </summary>
    public class PriceAdjustmentDetl : Entity<Guid>, IMultiTenant
    {
        /// <summary>
        /// 调价单
        /// </summary>
        public Guid PriceAdjustmentId { get; set; }

        /// <summary>
        /// 调价单
        /// </summary>
        public PriceAdjustmentRec PriceAdjustment { get; set; }

        /// <summary>
        /// 物料信息Id
        /// </summary>
        public Guid MaterialInfoId { get; set; }

        /// <summary>
        /// 物料信息
        /// </summary>
        public string MaterialInfoCodg { get; set; }

        /// <summary>
        /// 物料信息
        /// </summary>
        public string MaterialInfoName { get; set; }

        /// <summary>
        /// 库存id
        /// </summary>
        public Guid InventoryId { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNumber { get; set; }

        /// <summary>
        /// 入库单价
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal InWarehouseUnitPrice { get; set; }

        /// <summary>
        /// 零售价
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal RetailPrice { get; set; }

        /// <summary>
        /// 调整后入库单价
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal InWarehouseUnitPriceAdjustment { get; set; }

        /// <summary>
        /// 调整后零售价
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal RetailPriceAdjustment { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal Quantity { get; set; }

        /// <summary>
        /// 入库金额
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal InWarehouseUnitAmt { get; set; }

        /// <summary>
        /// 零售金额
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal RetailAmt { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }
    }
}
